﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SafeHomeSystem
{
    public partial class Form1 : Form
    {

        private int count = -1;

        public Form1()
        {
            InitializeComponent();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            count = (count + 1) % 50;
            this.label1.Location = new System.Drawing.Point(507 - count * 8, 47);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            ControlPanel mainCtrl = new ControlPanel();
            mainCtrl.Show();
        }
    }
}
